# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Newbyte <newbyte@postmarketos.org>
# Co-maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
pkgname=device-librecomputer-solitude
pkgdesc="Libre Computer AML-S905D3-CC"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-postmarketos-amlogic
	postmarketos-base
	soc-amlogic-s905
"
makedepends="devicepkg-dev"
source="
	deviceinfo
	modules-initfs
	"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="vdec firmware"
	depends="linux-firmware-meson"
	mkdir "$subpkgdir"
}

sha512sums="
e353ee2f4e821520d66f04ec66752fb12e9ea87f21aab19b053cc9be59eb82ded609d3f9dc3dc4c906772afce0bc2c1d8218cff3060d04c8182af1e67a9991d2  deviceinfo
52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8  modules-initfs
"
